<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="addArticle">
	<div class="title"><spring:message code="admin.aricle.add.article"/> </div>
	<form:form method="post" modelAttribute="manageArticle">
		<div class="articleTitle">
			<div class="label"><spring:message code="admin.article.title"/></div>
			<form:errors path="title" cssClass="error_message"/>
			<div>
				<form:input path="title" cssClass="text"/>
			</div>
		</div>
		<div class="articleBody">
			<div class="label"><spring:message code="admin.article.text"/></div>
			<form:errors path="text" cssClass="error_message"/>
			<form:textarea id="articleEditor" path="text" cssClass="text"/>
		</div>
		<div class="articleTag">
			<div class="label"><spring:message code="admin.article.tags"/></div>
			<form:errors path="tags" cssClass="error_message"/>
			<div>
				<form:input path="tags" cssClass="text"/>
			</div> 
		</div>
		<div class="controls">
			<button type="submit" class="sumbit-button">
				<spring:message code="admin.article.button.add"/>
			</button>
		</div>
	</form:form>
</div>

			<script type="text/javascript">
			//<![CDATA[

				CKEDITOR.replace( 'articleEditor' );

			//]]>
			</script>